package MyGO.service.impl;

import MyGO.dao.IMedicineDao;
import MyGO.dao.impl.MedicineImpl;
import MyGO.property.Medicine;
import MyGO.service.IMedicineService;

import java.util.HashMap;
import java.util.List;

public class MedicineServiceImpl implements IMedicineService {
    private static IMedicineDao medicineDao = new MedicineImpl();
    @Override
    public List<Medicine> getMedicineList() {
        return medicineDao.getMedicineList();
    }

    @Override
    public HashMap<String,Medicine> getMedicineMap() {
        return medicineDao.getMedicineMap();
    }

    @Override
    public void addMedicine(Medicine medicine) {
        medicineDao.addMedicine(medicine);
    }
}
